<?php if (!defined('THINK_PATH')) exit(); /*a:4:{s:80:"/www/wwwroot/api.bjxlxd.com/public/../application/business/view/order/index.html";i:1599096855;s:70:"/www/wwwroot/api.bjxlxd.com/application/business/view/public/help.html";i:1598261831;s:70:"/www/wwwroot/api.bjxlxd.com/application/business/view/public/menu.html";i:1598405729;s:72:"/www/wwwroot/api.bjxlxd.com/application/business/view/public/header.html";i:1597137300;}*/ ?>
<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">

    <title>后台管理</title>

    <!-- ================= Favicon ================== -->
    <!-- Standard -->
    <link rel="shortcut icon" href="http://placehold.it/64.png/000/fff">
    <!-- Retina iPad Touch Icon-->
    <link rel="apple-touch-icon" sizes="144x144" href="http://placehold.it/144.png/000/fff">
    <!-- Retina iPhone Touch Icon-->
    <link rel="apple-touch-icon" sizes="114x114" href="http://placehold.it/114.png/000/fff">
    <!-- Standard iPad Touch Icon-->
    <link rel="apple-touch-icon" sizes="72x72" href="http://placehold.it/72.png/000/fff">
    <!-- Standard iPhone Touch Icon-->
    <link rel="apple-touch-icon" sizes="57x57" href="http://placehold.it/57.png/000/fff">


    <!-- Styles -->
    <link href="/static/admin/other/fontawesome-all.min.css" rel="stylesheet">
    <link href="/static/admin/css/lib/themify-icons.css" rel="stylesheet">
    <link href="/static/admin/css/lib/mmc-chat.css" rel="stylesheet" />
    <link href="/static/admin/css/lib/owl.carousel.min.css" rel="stylesheet" />
    <link href="/static/admin/css/lib/owl.theme.default.min.css" rel="stylesheet" />
    <link href="/static/admin/css/lib/sidebar.css" rel="stylesheet">
    <link href="/static/admin/css/lib/bootstrap.min.css" rel="stylesheet">
    <link href="/static/admin/css/lib/nixon.css" rel="stylesheet">
    <link href="/static/admin/css/style.css" rel="stylesheet">
    
</head>

<body>

<div class="sidebar sidebar-hide-to-small sidebar-shrink sidebar-gestures">
    <div class="nano">
        <div class="nano-content">
            <ul>
                <li><a href="/admin/Index"><i class="ti-home"></i> 数据概览</a></li>

                <?php if(in_array((\think\Cookie::get('admin_id')), explode(',',"1"))): ?>
                <li>
                    <a class="sidebar-sub-toggle"><i class="ti-layout-grid4-alt"></i> 后台栏目管理 <span class="sidebar-collapse-icon ti-angle-down"></span></a>
                    <ul>
                        <li><a href="/admin/Menu">栏目列表</a></li>
                    </ul>
                </li>
                <li><a href="/admin/AdminUser"><i class="ti-github"></i> 后台管理员</a></li>
                <?php endif; if(is_array($topMenu) || $topMenu instanceof \think\Collection || $topMenu instanceof \think\Paginator): $i = 0; $__LIST__ = $topMenu;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;if(!empty($vo['secondMenu'])): ?>
                <li>
                    <a class="sidebar-sub-toggle"><i class="<?php echo $vo['icon']; ?>"></i> <?php echo $vo['name']; ?> <span class="sidebar-collapse-icon ti-angle-down"></span></a>
                    <ul>
                        <?php if(is_array($vo['secondMenu']) || $vo['secondMenu'] instanceof \think\Collection || $vo['secondMenu'] instanceof \think\Paginator): $i = 0; $__LIST__ = $vo['secondMenu'];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vi): $mod = ($i % 2 );++$i;?>
                        <li><a href="/admin/<?php echo $vi['class']; ?>"><?php echo $vi['name']; ?></a></li>
                        <?php endforeach; endif; else: echo "" ;endif; ?>
                    </ul>
                </li>
                <?php else: ?>
                <li><a href=""><i class="<?php echo $vo['icon']; ?>"></i> <?php echo $vo['name']; ?></a></li>
                <?php endif; endforeach; endif; else: echo "" ;endif; ?>
                <!--<li><a href="/admin/loginOut"><i class="ti-close"></i> Logout</a></li>-->
            </ul>
        </div>
    </div>
</div>


<div class="header">
    <div class="pull-left">
        <div class="logo">
            <a href="index.html"></a>
        </div>
        <div class="hamburger sidebar-toggle">
            <span class="ti-menu"></span>
        </div>
    </div>
    <div class="pull-right p-r-15">
        <ul>
            <li class="header-icon dib">
                <i class="ti-bell"></i>
                <div class="note-count">0</div>
                <div class="drop-down">
                    <div class="dropdown-content-body">
                        <ul>
                            <li>
                                <a href="/admin/demandList">
                                    <div class="notification-content">
                                        <div class="notification-heading">&nbsp;</div>
                                        <div class="notification-heading">有新的活动需求单</div>
                                        <div class="notification-heading">&nbsp;</div>
                                    </div>
                                </a>
                            </li>
                        </ul>
                    </div>
                </div>
            </li>

            <li class="header-icon dib">
                <img class="avatar-img" src="/static/admin/img/avatar/1.jpg" alt="" /> <span class="user-avatar"><?php echo \think\Cookie::get('admin_name'); ?> </span>
            </li>
        </ul>
    </div>
</div>


<script>
    window.onload = function(){
        getNum();
    }
    var ref = "";
    ref = setInterval(function(){
        getNum();
    },10000);
    function getNum(){
        $.ajax({
            type: 'POST',
            url: '/admin/Demand/getNum',
            data:{
            },
            dataType: 'json',
            success: function(data){
                $(".note-count").html(data.num);
            },
        });
    }
</script>

<div class="content-wrap">
    <div class="main">
        <div class="container-fluid">
            <div class="row">
                <div class="col-lg-8 p-0">
                    <div class="page-header">
                        <div class="page-title">
                            <h1></h1>
                        </div>
                    </div>
                </div>
                <div class="col-lg-4 p-0">
                    <div class="page-header">
                        <div class="page-title">
                            <ol class="breadcrumb text-right">
                                <li><a href="#"><?php echo $crumbs['oneMenuName']; ?></a></li>
                                <li class="active"><?php echo $crumbs['twoMenuName']; ?></li>
                            </ol>
                        </div>
                    </div>
                </div>
            </div>
            <div class="main-content">
                
<div class="main-content">
    <div class="row">
        <div class="col-lg-6">
            <div class="card alert">
                <div class="card-header">
                    <h4>搜索</h4>
                </div>
                <div class="card-body">
                    <div class="basic-form">
                        <form>
                            <div class="form-group">
                                <!--                                <p class="text-muted m-b-15 f-s-12">Use the input classes on an <code>input-default</code> for Default input.</p>-->
                                <div class="input-group input-group-default">
                                    <span class="input-group-btn">
                                        <button class="btn btn-primary" type="submit">
                                            <i class="ti-search"></i>
                                        </button>
                                    </span>
                                    <input type="text" placeholder="Search Default" value="<?php echo \think\Request::instance()->get('search'); ?>" name="search" class="form-control">
                                </div>
                            </div>
                        </form>
                    </div>
                </div>
                <div class="card alert">
                    <div class="card-header">
                        <h4>订单列表</h4>
                    </div>
                    <div class="card-body">
                        <table class="table table-responsive table-bordered">
                            <thead>
                            <tr>
                                <th>ID</th>
                                <th>商家名称</th>
                                <th>订单编号</th>
                                <th>用户名</th>
                                <th>收货地址</th>
                                <th>支付金额</th>
                                <th>支付方式</th>
                                <th>订单状态</th>
                                <th>支付时间</th>
                                <th>快递公司</th>
                                <th>快递单号</th>
                                <th>操作</th>
                            </tr>
                            </thead>
                            <tbody>
                            <?php foreach($data as $k => $v): ?>
                            <tr>
                                <td scope="row"><?php echo $v['id']; ?></td>
                                <td scope="row"><?php echo $v['b_name']; ?></td>
                                <td scope="row"><?php echo $v['order_code']; ?></td>
                                <td scope="row"><?php echo $v['user_name']; ?></td>
                                <td scope="row"><?php echo $v['addr']; ?></td>
                                <td scope="row"><?php echo $v['price']; ?></td>
                                <td scope="row">
                                    <?php if($v['status'] != 1): if($v['pay_type'] == 1): ?>
                                            微信
                                        <?php else: ?>
                                            支付宝
                                        <?php endif; endif; ?>
                                </td>
                                <td scope="row">
                                    <?php switch($v['status']): case "1": ?>未支付<?php break; case "2": ?>未发货<?php break; case "3": ?>未签收<?php break; case "4": ?>已签收<?php break; case "5": ?>退货/退款<?php break; case "6": ?>订单失效<?php break; endswitch; ?>
                                </td>
                                <td scope="row">
                                    <?php if($v['pay_time'] != 0): ?>
                                        <?php echo date("Y-m-d H:i:s",$v['pay_time']); endif; ?>
                                </td>
                                <td scope="row"><?php echo $v['express_name']; ?></td>
                                <td scope="row"><?php echo $v['express_code']; ?></td>
                                <td >
                                    <!--<a href="">-->
                                    <!--    <button type="button" class="btn btn-info m-b-10 m-l-3">详情</button>-->
                                    <!--</a>-->
                                    <button type="button" class="btn btn-info m-b-10 m-l-3 goods_details" b_id="<?php echo $v['b_id']; ?>" order_code="<?php echo $v['order_code']; ?>">详情</button>
                                    <!--<a href="<?php echo url('/admin/editSaasOrder', ['id' => $v['id']]); ?>"><button type="button" class="btn btn-warning m-b-10 m-l-5">修改</button></a>-->
                                </td>
                            </tr>
                            <?php endforeach; ?>
                            </tbody>
                        </table>
                        <?php echo $data->render(); ?>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>


            </div>

        </div><!-- /# container-fluid -->
    </div><!-- /# main -->
</div><!-- /# content wrap -->

<script src="/static/admin/js/lib/jquery.min.js"></script><!-- jquery vendor -->
<script src="/static/admin/js/lib/jquery.nanoscroller.min.js"></script><!-- nano scroller -->
<script src="/static/admin/js/lib/sidebar.js"></script><!-- sidebar -->
<script src="/static/admin/js/lib/bootstrap.min.js"></script><!-- bootstrap -->
<script src="/static/admin/js/lib/mmc-common.js"></script>
<script src="/static/admin/js/lib/mmc-chat.js"></script>
<script src="/static/admin/js/lib/owl-carousel/owl.carousel.min.js"></script>
<script src="/static/admin/js/lib/owl-carousel/owl.carousel-init.js"></script>
<script src="/static/admin/layer/layer.js"></script>
<script src="/static/admin/layer/common.js"></script>

<script>
    $('.goods_details').click(function () {
        var order_code = $(this).attr('order_code');
        var b_id = $(this).attr('b_id');
        layer.open({
            type: 2,
            area: ['700px', '700px'],
            btn: ['关闭'],
            title: '订单详情',
            content: '/admin/detailsSaasOrder/order_code/'+order_code+'/b_id/'+b_id,
        });
    })
</script>


</body>

</html>